package com.copsoftware.reportes.geografico.beans;



public class BeanUbicarLugar {

	protected final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass());
	
	public String[] mostrar(String deCalle) throws Exception
	{
		com.copsoftware.comun.delegates.GeometryDelegate gDelegate = new com.copsoftware.comun.delegates.GeometryDelegate();
		logger.info("Buscando Calle "+deCalle);
		String [] params = gDelegate.obtenerGPolygonCalle(deCalle);
		String gPolygon= com.copsoftware.utils.beans.GeoUtils.obtenerGPolygon(params[0])+
			getCalleStrokeColor()+","+
			getCalleSrokeWeigth()+","+
			getCalleStrokeOpacity()+","+
			getCalleFillColor()+","+
			getCalleFillOpacity()+
			makeClickable()+")";
		logger.info("Busco Delito ");
		params[0]=gPolygon;
		return params;
	}

	private String makeClickable() {
		return ",{clickable:false}";
	}

	private String getCalleStrokeColor() {
		return "'#ff7f50'"; 	
	}

	private String getCalleSrokeWeigth() {
		// TODO Auto-generated method stub
		return "1";
	}
	private String getCalleStrokeOpacity() {
		// TODO Auto-generated method stub
		return "1";
	}
	
	private String getCalleFillColor() {
		// TODO Auto-generated method stub
		return getCalleStrokeColor();
	}

	private String getCalleFillOpacity() {
		// TODO Auto-generated method stub
		return "0.1";
	}
	
	
}
